package day3;

/**
 * @author oldliu
 * @since 1.0
 */
public class UglyNumer {
    public static void main(String[] args) {
        //
        int k=1500;
        int i=k;
        while (k%2==0)
            k/=2;
        while (k%3==0)
            k/=3;
        while (k%5==0)
            k/=5;
        if(k==1){
            System.out.println(i+"是丑数");
        }else{
            System.out.println(i+"不是丑数");
        }
    }
}
